//
//  NYContactFooterReusableView.m
//  NiuWaJiaoYu
//
//  Created by MinLison on 2018/1/9.
//  Copyright © 2018年 niuwaketang. All rights reserved.
//

#import "NYContactFooterReusableView.h"

@interface NYContactFooterReusableView ()

@property (nonatomic, strong) UILabel *contanctLabel;
@end

@implementation NYContactFooterReusableView

- (void)setupView {
        [super setupView];
        
        [self addSubview:self.contanctLabel];
        
        [self.contanctLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
                
                make.top.mas_equalTo(10);
                make.left.right.bottom.equalTo(self);
        }];
}

- (void)setTitle:(NSString *)title {
        _title = title;
        self.contanctLabel.text = title;
}


- (UILabel *)contanctLabel {
        if (!_contanctLabel) {
                _contanctLabel = [[UILabel alloc] initWithFrame:CGRectZero];
                _contanctLabel.font = UIFontMake(14);
                _contanctLabel.textAlignment = NSTextAlignmentCenter;
                _contanctLabel.textColor = UIColorMakeWithHex(@"#333333");
                _contanctLabel.numberOfLines = 0;
        }
        return _contanctLabel;
}

@end
